﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
	CodeBehind="PersonalExamSearch.aspx.cs" Inherits="SBACN.WebSite.Education.PersonalExamSearch" %>

<%@ Register Src="~/UC/ClientPager.ascx" TagName="Pager" TagPrefix="ucl" %>
<%@ Register Src="~/UC/Navigator.ascx" TagName="Navigator" TagPrefix="uc1" %>
<%@ Register Src="~/UC/Menu.ascx" TagName="Menu" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
	function Check() {
		var SCID = $jqy("#SCID").val();
		if (SCID == "") {
			alert("请填写身份证号码！");
		} else {
			// 大陆及港澳地区身份证、台胞证。
			var isIDCard = /^(\w)*(-)*(\w)*$/;
			if (isIDCard.test(SCID)) {
				window.location = "/Education/PersonalExamSearch.aspx?st=<%= this.SystemType %>&id=" + SCID;
			} else {
				alert("请输入正确的身份证号码！");
			}
		}
	}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<!--主内容区-->
	<div id="wrapper">
		<uc1:Navigator ID="Navigator1" runat="server" />
		<!--左边栏-->
		<uc2:Menu ID="Menu1" runat="server" />
		<!--左边栏-->
		<!--右边栏-->
		<div id="container_r">
			<div id="pic_box">
				<img src="../images/mem_img.jpg" width="756" height="126" />
			</div>
			<div id="main_rbox">
				<div id="bk_search">
					 身份证号码：<input type="text" id="SCID" class="qa_input"style="width:340px;" />
					 <input type="button" id="btn_Search" onclick="Check();" class="qa_btn" value="查询" />
				</div>
				<div id="dashed_line">
				</div>
				<table width="100%" border="0" cellspacing="4" cellpadding="0" id="condition">
					<tr>
						<td width="15%" align="right">
							<strong>姓名:</strong>
						</td>
						<td width="15%" align="left">
							<%= Name %>
						</td>
						<td width="15%" align="right">
							<strong>身份证号:</strong>
						</td>
						<td align="left">
							<%= CID %>
						</td>
					</tr>
					<tr>
						<td width="15%" align="right">
							<strong>所属单位:</strong>
						</td>
						<td width="85%" colspan="3" align="left">
							<%= Member%>
						</td>
					</tr>
				</table>
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border_collapse">
					<tr>
						<td width="8%" class="grid_title">
							序号
						</td>
						<td width="19%" class="grid_title">
							考试日期
						</td>
						<td width="35%" class="grid_title">
							科目名称
						</td>
						<td width="19%" class="grid_title">
							考试成绩
						</td>
					</tr>
					<tr runat="server" id="Msg" visible="false">
						<td colspan="4" align="center">
							查无记录。
						</td>
					</tr>
					<asp:Repeater runat="server" ID="List">
						<ItemTemplate>
							<tr>
								<td class="grid_row">
									<%# Container.ItemIndex + 1 + PageFlag %>
								</td>
								<td class="grid_row">
									<%#Convert.ToDateTime( Eval("Deadline")).ToString("yyyy-MM-dd")%>
								</td>
								<td class="grid_row">
									<%# Eval("Subject") %>
								</td>
								<td class="grid_row">
									<font <%# Color(Eval("Pass").ToString()) %>>
										<%# Eval("Score")%></font>
								</td>
							</tr>
						</ItemTemplate>
						<AlternatingItemTemplate>
							<tr>
								<td class="grid_row2">
									<%# Container.ItemIndex + 1 + PageFlag %>
								</td>
								<td class="grid_row2">
									<%#Convert.ToDateTime( Eval("Deadline")).ToString("yyyy-MM-dd")%>
								</td>
								<td class="grid_row2">
									<%# Eval("Subject") %>
								</td>
								<td class="grid_row2">
									<font <%# Color(Eval("Pass").ToString()) %>>
										<%# Eval("Score")%></font>
								</td>
							</tr>
						</AlternatingItemTemplate>
					</asp:Repeater>
				</table>
				<div id="page">
					<ucl:Pager runat="server" PageSize="10" ID="Pager1" OnSelectedPageIndexChanged="BindSelectedPageIndexChanged" />
				</div>
			</div>
		</div>
	</div>
	<div style="clear: both;">
	</div>
	<!--主内容区-->
</asp:Content>
